package com.raven.play.datalink.common.type;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class TimeField extends SimpleField {

    private TimePrecisionEnum precision;

    public TimeField(String name) {
        this(name, TimePrecisionEnum.MILLIS);
    }

    public TimeField(String name, TimePrecisionEnum precision) {
        super(name, TypeEnum.TIME);
        this.precision = precision;
    }
}